﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Client.View.Forms;
using Client.View;

namespace Client
{
    /// <summary>
    /// Create view 
    /// </summary>
    public class ViewFactory
    {

        /// <summary>
        /// Create view by role
        /// </summary>
        /// <param name="role"></param>
        public static void CreateView(UserRole role)
        {

            MainWindow main = new MainWindow();
            main.Controls.Add(new Client.View.Components.OrdersView());
           /*switch (role)
            {
                //show Manager view
                case UserRole.Manager: 
                    main.Controls.Add(new ShopManagerView() );
                    break;
                                      //  IShopManagerView shopManagerView = new ShopManagerView();
                                       // shopManagerView.ShowWindow(); break;
                //show s view
                case UserRole.Storekeeper:
                                     //   IStorekeeperMainInterfaceView storekeeperMainInterfaceView = new StorekeeperMainInterfaceView();
                                    //    storekeeperMainInterfaceView.ShowWindow(); 
                                    break;
            }*/
            main.Show();
        }

    }//class
}
